package wml.switcher.command;

public class ActionCommand implements Command {

	public static final int ACTION_ERS_ALL = 201;
	public static final int ACTION_ERS_PRE = 202;
	public static final int ACTION_CHG_PEN = 203;
	public static final int ACTION_CHG_HILIGHT = 204;
	public static final int ACTION_JMP = 205;

	protected final int type;
	protected int position;
	public ActionCommand(int type, int position){
		this.type = type;
		this.position = position;
	}

	public static boolean isActionCommand(Command command) {
		return isActionCommand(command.getType());
	}

	public static boolean isActionCommand(int type) {
		return type > 200;
	}

	@Override
	public int getType() {
		return this.type;
	}

	public int getPosition() {
		return position;
	}
}
